.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--vscode-editor-background);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vscode-panel-border);
  background: var(--vscode-editorWidget-background);
  flex-shrink: 0;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--vscode-foreground);
}

.header-icon {
  font-size: 16px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--vscode-charts-yellow, #dcdcaa);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.4; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.2); }
}

.iteration-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--vscode-badge-background);
  color: var(--vscode-badge-foreground);
  border-radius: 10px;
}

.dev-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--vscode-badge-background);
  color: var(--vscode-badge-foreground);
  border-radius: 4px;
  opacity: 0.7;
}

.header-config-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.header-config-btn:hover {
  opacity: 1;
  background: var(--vscode-toolbar-hoverBackground);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.config-prompt {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.config-btn {
  padding: 10px 20px;
  background: var(--vscode-button-background);
  color: var(--vscode-button-foreground);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.config-btn:hover {
  background: var(--vscode-button-hoverBackground);
}

/* Loading indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--vscode-descriptionForeground);
  font-size: 13px;
}

.loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--vscode-progressBar-background, #0e639c);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
